<?php

use yii\db\Migration;

/**
 * Handles adding columns to table `{{%event}}`.
 */
class m230512_131235_add_is_free_column_to_event_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{%event}}', 'is_free', $this->boolean()->defaultValue(0));
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{%event}}', 'is_free');
    }
}
